<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form>
        <input type="text" placeholder="请输入用户名" class="username">
        <input type="password" placeholder="请输入密码" class="password">
        <input type="password" placeholder="请确认密码">
        <input type="submit" placeholder="注册" class="regis">
    </form>
</body>
</html>
<script src="jquery.js">
    
</script>
<script>
    $(".regis").click(function () {
        $.ajax({
            url:"",
            data:{"username":$(".username").text(),"password":$(".password").text()},
            type:"post"
        })
    })
    </script>